package com.example.springboot_jdk8.service;


import com.example.springboot_jdk8.enums.PullDataConfigEnum;

import java.util.List;

/**
 * 拉取数据的抽象接口
 * @param <T>
 */
public interface IPullData<T> {

    /**
     * 拉取数据的类型: org , user  ,job....
     * @param pullDataConfigEnum
     * @return
     */
    boolean supportPullDataType(PullDataConfigEnum pullDataConfigEnum);


    /**
     * 拉取数据的模式: 全量-FULL , 增量-INCRE
     * @param pullDataConfigEnum
     * @return
     */
    boolean supportPullDataModel(PullDataConfigEnum pullDataConfigEnum);

    List<T> pullData();

}
